<!-- 整改情况 -->
<template>
  <div class="content">
    <el-card class="box-card">
      <div slot="header">
        <span style="color: rgb(14, 175, 14);">整改情况</span>
      </div>
      <el-table :data="tableData" style="width: 100%" height="285">
        <el-table-column prop="date" label="通知日期"></el-table-column>
        <el-table-column prop="reason" label="整改原因"></el-table-column>
        <el-table-column prop="ask" label="整改要求"></el-table-column>
        <el-table-column prop="response" label="责任人"></el-table-column>
        <el-table-column prop="term" label="整改期限"></el-table-column>
        <el-table-column prop="finish" label="整改完成"></el-table-column>
        <el-table-column label="操作">
          <el-button type="text" icon="el-icon-date" @click="pushToNotice">奖惩通报</el-button>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          date: '2024-09-14',
          reason: '绿化改造进度慢',
          ask: '须在2024-09-24前整改完成',
          response: '马XX',
          term: '2024-09-24',
          finish: '是'
        },
        {
          date: '2024-09-14',
          reason: '苗木质量堪忧',
          ask: '须在2024-09-24前整改完成',
          response: '马XX',
          term: '2024-09-24',
          finish: '是'
        },
        {
          date: '2024-09-14',
          reason: '人工进度太慢',
          ask: '须在2024-09-24前整改完成',
          response: '马XX',
          term: '2024-09-24',
          finish: '是'
        },
        {
          date: '2024-09-14',
          reason: '草坪质量需提升',
          ask: '须在2024-09-24前整改完成',
          response: '马XX',
          term: '2024-09-24',
          finish: '是'
        },
        {
          date: '2024-09-14',
          reason: '注意生物保护',
          ask: '须在2024-09-24前整改完成',
          response: '马XX',
          term: '2024-09-24',
          finish: '是'
        },
        {
          date: '2024-09-14',
          reason: '机器人设备防护',
          ask: '须在2024-09-24前整改完成',
          response: '马XX',
          term: '2024-09-24',
          finish: '是'
        }
      ]
    }
  },
  mounted() {
    
  },
  methods: {
    // 奖惩通报
    pushToNotice() {
      const routeData = this.$router.resolve({path: '/manager/testImgShow', query: {type: 'report'}})
      window.open(routeData.href,'_blank')
    }
  }
}
</script>

<style lang="scss" scoped>

</style>